package com.mgq.design.template;

import java.util.function.Consumer;

/**
 * <b>功能：</b>在线银行lambda<br>
 * <b>Copyright TCSL</b>
 * <li>版本&nbsp;&nbsp;&nbsp;&nbsp;修改日期&nbsp;&nbsp;&nbsp;&nbsp;部　　门&nbsp;&nbsp;&nbsp;&nbsp;作　者&nbsp;&nbsp;&nbsp;&nbsp;变更内容</li><hr>
 * <li>v1.0&nbsp;&nbsp;&nbsp;&nbsp;20220415&nbsp;&nbsp;营业后台&nbsp;&nbsp;&nbsp;&nbsp;马广奇&nbsp;&nbsp;&nbsp;&nbsp;创建类</li>
 * <br><br>
 *不需要抽象
 * @author 马广奇
 * @version 2022-04-15 14:57
 */
public  class OnlineBankLambda {

    /**
     * 使用函数式接口简化.
     */
    public void processCustomer(int id, Consumer<Customer> makeCustomerHappy) {
        //根据id获取用户信息.
        //Customer c= Database.getOne(id)；
        makeCustomerHappy.accept(new Customer());

    }
}
